<?php

class UserAccess extends AppModel {
	public $belongsTo = array(
	
		'Feature',
		'Functionality'
	
	);

	
	
}


/*
SELECT user_accesses.*, features.code
FROM user_accesses 
LEFT JOIN features
ON user_accesses.feature_id=features.id
UNION
SELECT user_accesses.*, features.code
FROM user_accesses 
RIGHT JOIN features
ON user_accesses.feature_id=features.id
*/
?>

